<form class="layui-form layui-form-pane" id="FormBizFavorContactsAdd" lay-filter="FormBizFavorContactsAdd" action="/biz/favor/contacts/add">
    <input type="hidden" id="groupId" name="groupId" th:value="${groupId}">
    <div class="layui-row p-l-sm m-b-xl">
        <div class="layui-row">
            <div th:replace="common/plugin :: pa-form-input('text','日期(*)','favorDay','layui-col-md12',128,'required','')"></div>
            <div th:replace="common/plugin :: pa-form-input('text','姓名(*)','favorName','layui-col-md6',128,'required','')"></div>
            <div th:replace="common/plugin :: pa-form-input('text','关系(*)','favorRelation','layui-col-md6',128,'required','')"></div>
            <div th:replace="common/plugin :: pa-form-input('text','收入','income','layui-col-md6',32,'','')"></div>
            <div th:replace="common/plugin :: pa-form-input('text','支出','expenditure','layui-col-md6',32,'','')"></div>
            <div th:replace="common/plugin :: pa-form-input('text','标签','favorTags','layui-col-md12',128,'','')"></div>
            <div th:replace="common/plugin :: pa-form-textarea('text','备注','favorDesc','layui-col-md12',5,'','')"></div>
        </div>
    </div>
</form>
<script>
    layui.use(["jquery", "laydate", 'form'], function () {
        let laydate = layui.laydate;
        let form = layui.form;
        let $ = layui.jquery;
        form.render();
        laydate.render({
            elem: "#FormBizFavorContactsAdd .layui-input[name=favorDay]",
            ready: function () {
                $(".laydate-month-list").dblclick(function () {
                    $(".laydate-btns-confirm").click();
                });
            }
        });
    });
</script>